@extends('admin.layout.main')

@section('content')
    <div class="breadcrumbs ace-save-state" id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="ace-icon fa fa-home home-icon"></i>
                <a href="#">首页</a>
            </li>
            <li class="active"><a href="#">系统管理</a></li>
            <li class="active"><a href="/admin/finance/create">财务设置</a></li>
        </ul><!-- /.breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
		<span class="input-icon">
		<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
			<i class="ace-icon fa fa-search nav-search-icon"></i>
		</span>
            </form>
        </div><!-- /.nav-search -->
    </div>

    <div class="row">
        <div class="col-xs-12">
        	<div class="clearfix">
				<div class="pull-right tableTools-container"></div>
			</div>
			<div class="table-header">
				<a href="#">
				<i class="menu-icon glyphicon glyphicon-tags orange"></i>
				<span class="menu-text orange"> 网站财务设置 </span>
				</a>
			</div>
            <!-- PAGE CONTENT BEGINS -->
            <form class="form-horizontal" role="form" action="/admin/finance" method="post">
                <div>
                	{{csrf_field()}}
						<table id="dynamic-table" class="table table-striped table-bordered table-hover">
							<tbody>
								<tr>
									<td class="center">
										<span >* 交易时间段 :开始时间</span>
									</td>
									<td>
										时：<input type="number"  name="s_head" placeholder="15" value="{{$data['s_head']}}">
										分：<input type="number"  name="s_end" placeholder="15" value="{{ $data['s_end'] }}">
									</td>
								</tr>
								<tr>
									<td class="center">
										<span>* 交易时间段 :结束时间</span>
									</td>
									<td>
										时：<input type="number" name="e_head" placeholder="15" value="{{$data['e_head']}}">
										分：<input type="number" name="e_end" placeholder="15" value="{{$data['e_end']}}">
									</td>
								</tr>
								<tr>
									<td class="center">
										<span>* 人工充值最低限额</span>
									</td>
									<td>
										<input type="text" name="min" class="col-xs-10 col-sm-5" value="{{$data['min']}}">
									</td>
								</tr>	
								<tr>
									<td class="center">
										<span>* 人工充值最高限额</span>
									</td>
									<td>
										<input type="text" name="max" class="col-xs-10 col-sm-5" value="{{$data['max']}}">
									</td>
								</tr>	
								<tr>
									<td class="center">
										<span>* 登录超时退出（分钟）</span>
									</td>
									<td>
										<input type="text" name="out_time" class="col-xs-10 col-sm-5" value="{{$data['out_time']}}"> &nbsp;为0此项无需设置
									</td>
								</tr>	
								<tr>
									<td class="center" rowspan="2">
										<span>* 人工充值手续费</span>
									</td>
									<td rowspan="2">
									
										<input type="radio" class="proc_radio">
										<input type="text" name="proc" class="proc_text" value="{{$data['proc']}}"> &nbsp;元
										
										<div class="space-6"></div>

										<input type="radio" class="scale_radio">
										<input type="text" name="scale" class="scale_text" value="{{$data['scale']}}"> &nbsp;%
										
									</td>
								</tr>
								<tr>
									<td></td><td></td>
								</tr>
								<tr>
									<td class="center">
										<span>* 网站总交易额增加</span>
									</td>
									<td>
										<input type="text" name="total_buy" class="col-xs-10 col-sm-5" value="{{$data['total_buy']}}"> &nbsp;用于首页显示
									</td>
								</tr>	
								<tr>
									<td class="center"> 
										<span>* 解冻比例</span>
									</td>
									<td>
										<input type="text" name="thaw_scale" class="col-xs-10 col-sm-5" value="{{$data['thaw_scale']}}"> &nbsp;%每日按照设置比例解冻
									</td>
								</tr>	
								<tr>
									<td>
										<span></span>
									</td>
									<td>
										<button class="btn btn-info" type="submit">
				                            <i class="ace-icon fa fa-check bigger-110"></i>
				                            提交
				                        </button>

				                        &nbsp; &nbsp; &nbsp;
				                        <a href="javascript:history.go(-1);" class="btn" type="reset">
				                            <i class="ace-icon fa fa-undo bigger-110"></i>
				                            返回
				                        </a>
									</td>
								</tr>	
							</tbody>
						</table>
					</div>
            </form>
        </div>
    </div>
    </div><!-- /.main-content -->
@endsection

@section('after.js')
	<script type="text/javascript">
		$('.proc_radio').click(function(){
			$('.scale_radio').attr("checked",false);
			$('.scale_text').attr('disabled', true);
			$('.proc_text').attr('disabled', false);
		});
		$('.scale_radio').click(function(){
			$('.proc_radio').attr("checked",false);
			$('.proc_text').attr('disabled', true);
			$('.scale_text').attr('disabled', false);
		});
	</script>
@endsection
